package com.iw.test.db;

import java.util.List;

import javax.annotation.Resource;

import org.junit.Test;

import com.iw.adoms.action.DepartmentAction;
import com.iw.adoms.entity.Department;

public class JDepartmentAction extends DBBase {

	@Resource
	private DepartmentAction departmentAction;

	@Test
	public void testListDepartment() {
		List<Department> list = departmentAction.listDepartmentByType(1);
		for (Department d : list) {
			System.out.println(d.getName());
		}
	}

}
